<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://127.0.0.1:23798/DealManagementService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/Chianti.Service" />
  <xs:import schemaLocation="http://127.0.0.1:23798/DealManagementService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" />
  <xs:import schemaLocation="http://127.0.0.1:23798/DealManagementService.svc?xsd=xsd5" namespace="http://schemas.datacontract.org/2004/07/Chianti.Service.Types.Enumeration" />
  <xs:import schemaLocation="http://127.0.0.1:23798/DealManagementService.svc?xsd=xsd6" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:element name="GetData">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="value" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDataResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetDataResult" nillable="true" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDataUsingDataContract">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/Chianti.Service" minOccurs="0" name="composite" nillable="true" type="q1:CompositeType" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDataUsingDataContractResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/Chianti.Service" minOccurs="0" name="GetDataUsingDataContractResult" nillable="true" type="q2:CompositeType" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DeleteBusiness">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="businessID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DeleteBusinessResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="IsDealActive">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="IsDealActiveResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="IsDealActiveResult" type="xs:boolean" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateBusiness">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="newBusiness" nillable="true" type="q3:Business" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateBusinessResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="CreateBusinessResult" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateDeal">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="newDeal" nillable="true" type="q4:Deal" />
        <xs:element minOccurs="0" name="bidAmount" type="xs:double" />
        <xs:element minOccurs="0" name="radiusInMeters" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CreateDealResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="CreateDealResult" nillable="true" type="q5:CreateDealResponse" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateDeal">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="updatedDeal" nillable="true" type="q6:Deal" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateDealResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="DeleteDeal">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DeleteDealResponse">
    <xs:complexType>
      <xs:sequence />
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDeal">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetDealResult" nillable="true" type="q7:Deal" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealBid">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealBidResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetDealBidResult" nillable="true" type="q8:DealBid" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateDealBid">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
        <xs:element minOccurs="0" name="newBid" type="xs:double" />
        <xs:element minOccurs="0" name="newBidRadius" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="UpdateDealBidResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="UpdateDealBidResult" nillable="true" type="q9:UpdateDealBidResponse" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindDealHeadings">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="longitude" nillable="true" type="q10:Position" />
        <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="latitude" nillable="true" type="q11:Position" />
        <xs:element minOccurs="0" name="radius" type="xs:int" />
        <xs:element minOccurs="0" name="maxResults" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindDealHeadingsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/Chianti.Service.Types.Enumeration" minOccurs="0" name="FindDealHeadingsResult" nillable="true" type="q12:ArrayOfDealEnumerationResult" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealMetrics">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="dealID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealMetricsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetDealMetricsResult" nillable="true" type="q13:DealMetric" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindBusinessesByName">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
        <xs:element minOccurs="0" name="maxResults" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindBusinessesByNameResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="FindBusinessesByNameResult" nillable="true" type="q14:ArrayOfBusiness" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetBusinesses">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q15="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="businessIDs" nillable="true" type="q15:ArrayOflong" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetBusinessesResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetBusinessesResult" nillable="true" type="q16:ArrayOfBusiness" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealBids">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q17="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="dealIDs" nillable="true" type="q17:ArrayOflong" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetDealBidsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetDealBidsResult" nillable="true" type="q18:ArrayOfDealBid" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindActiveDeals">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="longitude" nillable="true" type="q19:Position" />
        <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="latitude" nillable="true" type="q20:Position" />
        <xs:element minOccurs="0" name="radius" type="xs:int" />
        <xs:element minOccurs="0" name="maxResults" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="FindActiveDealsResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="FindActiveDealsResult" nillable="true" type="q21:ArrayOfDeal" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetBusiness">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="businessID" type="xs:long" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetBusinessResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/Chianti.Service.Types" minOccurs="0" name="GetBusinessResult" nillable="true" type="q22:Business" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>